/*
 * 功能: 暗黑龙王副本离开
 * From: 芬芬时尚潮流
 */
var status = -1;

function action(mode, type, selection) {
	if (mode == 1) {
		status++;
	} else {
		if (status == 0) {
			cm.dispose();
		}
		status--;
	}
	if (status == 0) {
		cm.sendYesNo("你确定想离开这里,前往#m240040700#吗?");
	} else if (status == 1) {
		cm.warp(240040700, 0);
		cm.dispose();
	}
}
